package devyouk.util.excel.cellAdapter;

import org.apache.poi.ss.usermodel.CellType;

class ObjcetToStringAdapter extends CellValueAdapter<Object,String> {

    @Override
    public CellType getCellType() {
        return CellType.STRING;
    }

    @Override
    public String getCellValue(Object data) {
        if (data == null) {
            return "";
        }
        return data.toString();
    }
}
